package cn.qyd.kaoshi;

/**
 * @author 邱运铎
 * @date 2024-03-19 17:29
 */
public class Gongbeishu {
    public static void main(String[] args) {
        int m = 6, n=4;
        int result = 0;

        int max = Math.max(m,n);

        for (int i = max; i <= m*n; i++) {
            System.out.println(m + "---" + n + "-----" + i);
            System.out.println(i%m);
            System.out.println(i%n);
            if (i%m == 0 && i%n == 0) {
                result = i;
            }
        }
        System.out.println(result);
    }
}
